package com.arcpan.Service;

import com.arcpan.Entity.Dto.SessionWebUserDto;
import com.arcpan.Entity.Dto.UploadResultDto;
import com.arcpan.Entity.Query.FileInfoQuery;
import com.arcpan.Entity.Vo.FileInfo;
import com.arcpan.Result.PageResult;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public interface FileInfoService {


    PageResult getByPage(FileInfoQuery fileInfoQuery, Integer pageNo, Integer pageSize);

    UploadResultDto uploadFile(SessionWebUserDto sessionWebUserDto, String fileId, MultipartFile file, String fileName, String filePid, String fileMd5, Integer chunkIndex, Integer chunks);

    FileInfo newFolder(String filePid, String userId, String fileName);

    FileInfo rename(String fileId, String userId, String fileName);

    void changeFilefolder(String fileIds, String filePid, String userId);

    void removeFile(String fileIds, String userId);

    void recoverfile(String userId, String fileIds);

    void deletefile(String userId, String fileIds);
}
